package JavaCore;

public class MYMath implements MyMathInterface {
	
	
	

	@Override
	public int max(int a, int b) {
			int m = (a>b)?a:b;
		return m;
	}

	@Override
	public int min(int a, int b) {
		int m = (a<b)?a:b;
		return m;
		
	}

	@Override
	public int hap(int[] a) {
		int s=0;
		for(int i=0;i<a.length;i++){
		  s+=a[i];
		}
		return s;
	}
}


